<template>
  <div>
    <h1>周一周四·新品首发</h1>
    <ul>
      <li v-for="item in newGoodsList" :key="item.id">
        <img :src="item.list_pic_url" alt="" />
        <span>{{ item.name }}</span>
        <span>{{ item.retail_price }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "",
  props: { newGoodsList: [] },
  data() {
    return {};
  },
};
</script>
<style lang="less" scoped>
div {
  h1 {
    text-align: center;
  }
  ul {
    margin: 0 auto;
    width: 100%;
    height: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    li {
      //   float: left;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 45%;
      height: 45%;

      span {
        font-size: 16px;
      }
      img {
        width: 90%;
        height: 90%;
      }
    }
  }
}
</style>